import request from '@/utils/request'
export const selectConPayList = (houses_id, user_id, contract_id) => {
  return request({
    url: '/api/selectConPayList',
    method: 'get',
    params: {
      houses_id: houses_id,
      user_id: user_id,
      contract_id: contract_id,
    },
  })
}
export const propertyItemList = () => {
  return request({
    url: '/api/propertyItemList',
    method: 'get',
  })
}
export const selectPayMess = houses_id => {
  return request({
    url: '/api/selectPayMess',
    method: 'get',
    params: {
      houses_id: houses_id,
    },
  })
}
export const selectInvoiceRequest = () => {
  return request({
    url: '/api/selectInvoiceRequest',
    method: 'get',
  })
}
export const pullBill = bills => {
  return request({
    url: '/api/pullBill',
    method: 'post',
    data: bills,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export const submitRequest = invoiceDTO => {
  return request({
    url: '/api/billing',
    method: 'post',
    data: invoiceDTO,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
